monotonic and non monotonic functions